package ngat.oss.scheduling.auctions;

/** Event class for notifying of completion.*/
public class CompletionEvent extends AuctionEvent {

    /** The results on completion.*/
    private Object results;

    /** */
    public CompletionEvent(long timeStamp, int auctionId, Object results) {
	super(timeStamp, auctionId);
	this.results = results;
    }

    /** Returns the results on completion.*/
    public Object getResults() { return results; }

    /** Returns a readable representation of this AuctionEvent.*/
    public String toString() { 
	return super.toString()+":[Completion, Results:"+results+"]";
	
	// e.g. AuctionEvent@1102293933:AX67B:[Completion, Results] etc
    }
}
